package com.dingxin.ship_together_api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
* Author: ctj
* Date: 2022-12-02
* Time: 17:08
*/

@ApiModel(value="ship_together.sys_error_log")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "ship_together.sys_error_log")
public class SysErrorLog implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="")
    private Long id;

    @TableField(value = "code")
    @ApiModelProperty(value="")
    private String code;

    @TableField(value = "msg")
    @ApiModelProperty(value="")
    private String msg;

    @TableField(value = "stacktrace")
    @ApiModelProperty(value="")
    private String stacktrace;

    /**
     * 创建人
     */
    @TableField(value = "create_by" ,fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_MSG = "msg";

    public static final String COL_STACKTRACE = "stacktrace";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_TIME = "create_time";
}